//
//  ViewController.swift
//  AleartView
//
//  Created by 郑东喜 on 2016/12/2.
//  Copyright © 2016年 郑东喜. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
    
    var alert = UIAlertController()


    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

//
//        CustomAlertView.shared.alertWithTitle(strTitle: "登陆成功")
//        
//        let a = 2
//        let b = 4
//        
//        
        
        CustomAlertView.shared.alertAfterDown(strTitle: "登陆中...")
        
        //两秒钟后自动消失
        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1) {
            CustomAlertView.shared.dissmiss()
        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

